<?php


	echo "<div id='verhuurformulier'>";
	echo "<hr>";
	echo "<table>";
	
	echo "<form method='post' action=''>";
	
	
	echo " <h1>Vul gegevens van gast in</h1>";
	echo "<tr><td><label>Kies een dvd</label></td>";
	echo "<td><select name='dvdid'>";
		
		$query = mysql_query("SELECT * FROM dvd");
	
		while($row = mysql_fetch_array($query))
			{
				if($row['id'] == $selected_dvd)
					echo "<option value=".$row['id']." selected='selected'>".$row['id']." - &quot;".$row['naam']."&quot;</option>";
				else
					echo "<option value=".$row['id'].">".$row['id']." - &quot;".$row['naam']."&quot;</option>";	
			}
			
	echo "</select></td>";
	echo "<tr><td><label>Naam</label></td><td><input type='text' name='naamgast' value=''></td></tr>";
	echo "<tr><td><label>Acc. Nummer</label></td><td><input type='text' value=''></td></tr>";
	echo "<tr><td></td><td><input class='button' type='submit' name='submit' value='Klik hier om dvd te verhuren'></td></tr>";
	echo "</form>";
	echo "</table>";
	echo "</div>";

?>